﻿@model Webdiyer.WebControls.Mvc.PagedList<B4Deal.Models.Deal>
@{
    ViewBag.Title = "Giá tốt gần đây";
    var count = 0;
}
<div style="margin-top: 20px; height: 20px">
</div>
<table>
    @foreach (var item in Model)
    {
        if (count < 5)
        {    
        <tr>
            <td>
                @Html.Partial("_MiniProduct", item)
            </td>
            <td>
                @Html.Partial("_MiniProduct", Model.ElementAt(count + 5))
            </td>
            <td>
                @Html.Partial("_MiniProduct", Model.ElementAt(count + 10))
            </td>
        </tr>
            count++;
        }     
    }
</table>

@using Webdiyer.WebControls.Mvc
<div id="paging">
@Html.AjaxPager(Model, new PagerOptions() { PageIndexParameterName = "id", ShowDisabledPagerItems = false, AlwaysShowFirstLastPageNumber = true }, new AjaxOptions { UpdateTargetId = "dvOrders" })
</div>